package me.zixing.java.chapter11.server;

import java.io.File;
import java.io.FileInputStream;

/**
 * Created by bingh on 2017/12/1.
 */
public class FileFinder {

    public static FileInputStream getFileInputStreamByPath(String filePath){
        if(filePath!=null){
            try{
                FileInputStream fileInputStream = new FileInputStream(filePath.trim());
                return fileInputStream;
            } catch (Exception e){
               /* e.printStackTrace();*/
                return null;
            }
        }
        return null;
    }

}
